<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>
   <div id="app">

   </div>
</body>
<script>
    var app = new Vue({
        el:"#app",
        data:{
             msg:"你好！"
        },
        //孕育生命
        beforeCreate:function () {
            console.log("长身体");
        },
        //生灵的诞生
        created:function () {
            console.log("出生");
        },
        //融入社会
        //设置绑定dom对象
        beforeMount:function () {
            console.log("编译html组件");
        },
        mounted:function () {
            console.log("页面挂载完毕，替换el为vm.$el");
        }

    });

    console.log(app);
</script>
</html>

